package com.ingesoft.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.data.RecordList;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextAreaItem;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.client.widgets.grid.events.RecordExpandEvent;
import com.smartgwt.client.widgets.grid.events.RecordExpandHandler;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;
import com.smartgwt.client.widgets.tab.TabSet;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ViewController implements EntryPoint {
	/**
	 * The message displayed to the user when the server cannot be reached or
	 * returns an error.
	 */
	private static final String SERVER_ERROR = "An error occurred while "
			+ "attempting to contact the server. Please check your network "
			+ "connection and try again.";

	/**
	 * Create a remote service proxy to talk to the server-side Greeting service.
	 */
	
	private TabSet tabs;
	private TabObjetivoGeneral tabObjGeneral;
	private TabObjetivoTerminal tabObjTerminal;
	private TabMaterial tabMaterial;
    private TabObjetivoEspecifico tabObjEspecifico;
    private TabPlanificador tabPlanificador;
    private TabUnidad tabUnidad;
    private TabSaberes tabSaberes;
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		
		tabs = new TabSet();
		tabs.setHeight(600);
		tabs.setWidth(1100);
		tabObjGeneral = new TabObjetivoGeneral(this);
		tabObjTerminal=new TabObjetivoTerminal(this);
		tabObjEspecifico=new TabObjetivoEspecifico(this);
		tabPlanificador=new TabPlanificador(this);
		tabMaterial=new TabMaterial(this);
		tabUnidad=new TabUnidad(this);
		tabSaberes=new TabSaberes(this);
		tabs.setTabs(tabObjGeneral,tabObjTerminal,tabUnidad,tabObjEspecifico,tabSaberes,tabMaterial,tabPlanificador);
		RootPanel.get().add(tabs);
	}
	
}
